www.gusucode.com > AspFaq在线帮助系统 V1.0 > AspFaq在线帮助系统 V1.0\code\admin\Guest.asp

    <!--#include file="Include.asp"--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言管理--<%=Site_Name%></title>
<link rel="stylesheet" href="Images/Style.css" type="text/css" media="all" />
<script language="javascript" src="../Js/Jquery.js"></script>
<script language="javascript" src="../Js/Form.js"></script>
<script language="javascript" src="../Js/Function.js"></script>
</head>

<body>
<div id="wrap">
<!--#Include file="Head.asp"-->
  <div id="main">
    <h2><span>留言管理</span></h2>
    <div class="explain">
      </div>
        <div id="bcmscontent">
          <ul>
            <li class="title">
            <b style="width: 86px;margin-left:-50px;"></b>
            <b style="width: 151px;">联系方式 </b>
            <b style="width: 151px;"> 留言者 </b>
            留言标题
            </li>
<%
sqlstr="select * from [Guest] order by Guest_Id desc"
rs.open sqlstr,conn,1,3
if not rs.eof then
  rs.pagesize=page_size
  if page_now>rs.pagecount or page_now<=0 then
	page_now=1
  end if
  page_count=rs.pagecount
  rs.absolutepage=page_now
  page_all=rs.recordcount
  i=1
  while (not rs.eof) and i<page_size+1
%>
            <li id="div1">
            <span style="padding-left:5px;width: 90px;" id="del1"><a href="javascript:DelIt('确定要删除留言“<%=rs("Guest_Title")%>”?','Guest_Do.asp?type=3&id=<%=rs("Guest_Id")%>','Guest.asp');">✕删除</a></span>
            <span style="width: 150px;"><%=rs("Guest_Contact")%></span>
            <span style="width: 150px;"><%=rs("Guest_Name")%></span>
            <%=rs("Guest_Title")%>[<%=rs("Guest_Time")%>&nbsp;&nbsp;&nbsp;<%=rs("Guest_Ip")%>]<br />
            留言内容:<%=rs("Guest_Content")%>
            </li>
  <%
    rs.movenext
	i=i+1
  wend
  PageFile="Guest.asp?Menu=2&Menu2=4&page="
%>
            <li>
            <%if page_now>1 then%>
              <a href="<%=PageFile%>1">第一页</a>
          <%else%>
          第一页
          <%end if%>
          &nbsp;
          <%if page_now>1 then%>
          <a href="<%=PageFile%><%=page_now-1%>">上一页</a>
          <%else%>
          上一页
          <%end if%>
          &nbsp;
          <%if page_count>page_now then%>
          <a href="<%=PageFile%><%=page_now+1%>">下一页</a>
          <%else%>
          下一页
          <%end if%>
          &nbsp;
          <%if page_count>page_now then%>
          <a href="<%=PageFile%><%=page_count%>">尾页</a>
          <%else%>
          尾页
          <%end if%>
          &nbsp;<%=page_size%>条/页&nbsp;共<%=page_count%>页/<%=page_all%>条&nbsp;当前第<%=page_now%>页
          <select name="change_page" id="change_page" onchange="location.href='<%=PageFile%>'+this.options[this.selectedIndex].value;">
                <%
for i=1 to page_count
%>
                <option value="<%=i%>"<%if i=page_now then%> selected="selected"<%end if%>>第<%=i%>页</option>
                <%
next
%>
              </select> 
            </li>
<%
end if
rs.close
%>
          </ul>
        </div>
      </div>
<!--#Include file="Foot.asp"-->
<!--#Include file="Show_Go.asp"-->
</div>
</body>
</html>